Lecture: Problem Statement

Actuarial Data Science - Open Learning Resource

Author

Fei Huang, UNSW Sydney

Learning Objectives

  • In this lecture, we focus on framing problems: turning a vague business concern into a clear, answerable data science question. A well-posed question saves you time later, as it guides what data are needed and which methods are appropriate.

  • Understand and explain different types of questions

  • Justify the importance of a strong understanding of the business, including its objectives, constraints, and operating environment, when designing and implementing a data analytics project

The Data Science Lifecycle

Data Science Lifecycle (DSL)

  • Data analysis is a highly iterative and non-linear process.

  • The data analysis process can be viewed as a specific application of the Actuarial Control Cycle, which we refer to as the Data Science Lifecycle (DSL).

Here, we zoom in on the first step of the DSL: problem definition. You should start thinking about where your project sits in this lifecycle, and how a clear problem statement will affect all downstream steps.

Data Science Lifecycle

The 6 steps of the data science lifecycle (DSL)

  1. Problem Statement
  2. Data Collection
  3. Exploratory Data Analysis
  4. Modelling
  5. Evaluation
  6. Deployment

The Epicycle for Problem Statement

The epicycle consists of three iterative steps:

  1. Setting expectations
  2. Collecting information (data) and comparing it to your expectations, and if the expectations do not match
  3. Revising your expectations or refining the data so that the data and your expectations match

Applying the Epicycle to Stating and Refining Your Question (Step 1)

You can use the information about the different question types and the characteristics of good questions as a guide to refining your question. To do this, iterate through the following three steps:

  • Establishing your expectations about the question

  • Gathering information about the question

  • Determining whether your expectations match the information you gathered, and refining your question (or expectations) if they do not

Activity 1: Framing the Question

  • Work in groups and introduce yourselves
  • Select one data science problem based on your own experience
  • Apply the epicycle analysis to state and refine your question (Step 1 of the Data Analysis Cycle)
  • Summarise the key points and share them on the Teams channel

Question Types and Good Questions

Question Types

  • Descriptive: What happened? Provides a summary of the data without drawing conclusions or interpretations.
TipExamples:
  • What is the average temperature in July across Australian cities?
  • How many patients were admitted to the emergency department last year?
  • Exploratory: What patterns or relationships exist in the data? Expands on descriptive analysis by exploring the data for patterns, trends, correlations, or relationships to generate ideas or hypotheses.
TipExamples:
  • Are there clusters of customer behaviour in purchase data?
  • Do different social media platforms show different usage patterns by age?

Question Types (continued)

  • Inferential: What can we infer about a population based on a sample? Uses sample data to estimate population parameters.
TipExamples:
  • What is the average income of Australian adults based on a survey?
  • Is there a relationship between hours of sleep and the number of accidents based on the collected data?
  • Predictive: What is likely to happen in the future? Predicts an outcome based on current or historical data.
TipExamples:
  • Given a driver’s age, location, and driving history, what is the expected number of insurance claims next year?
  • What is the probability of a customer churning in the next three months?

Question Types (continued)

  • Causal: What is the effect of X on Y? Determines whether changing one variable leads to a change in another variable, on average, across a population.
TipExamples:
  • Does wearing a seatbelt reduce fatalities in car crashes?
  • Does a new drug reduce blood pressure?
  • Mechanistic: How does the system work exactly? Understand the underlying biological, physical, or theoretical mechanisms, i.e. changing one measurement always and exclusively leads to a specific, deterministic behavior in another.
TipExamples:
  • How does wing design change airflow over a wing to reduce drag, and why is mechanistic data analysis so rare outside of engineering?
  • How does smoking cause lung cancer at the cellular level?

Source: adapted from Leek and Peng (2015)

How to Differentiate Question Types?

“We have found that the most frequent failure in data analysis is mistaking the type of question being considered.” — Leek and Peng (2015)

Data analysis flowchart for question types (Source: Leek and Peng (2015))

Example

  • Is this a causal question?
TipExample:
  • Analysing the relationship between cellphone use and brain cancer (link)

Activity 2: Identifying Question Types

  • Specify the question type your team identified in the previous activity

  • Share the refined question and its type by replying to your previous post in the Teams channel

  • Challenge your question:

    • Why is this an important question? Who cares about it?
    • Has this question already been answered?
    • Is this question answerable?
    • Is this question too broad? Can it be made more specific?
  • What makes a good question?

Characteristics of a Good Question

  1. The question should be of interest to your audience, which depends on the context and environment in which you are working with data
  2. You should check whether the question has already been answered.
  3. The question should stem from a plausible framework
  4. The question should, of course, be answerable.
  5. Specificity is also an important characteristic of a good question.

Adapted from Peng and Matsui (2015), see Chapter 3.3 of The Art of Data Science for details

Example: From the Wattle Insurance Case

TipExample: Wattle Insurance

The broker’s original complaint (Chapter 1’s case study) was: “How can two similar businesses get such different prices?”

This falls short on several counts. It is not specific about which businesses, which factors, or over what period, and it does not yet stem from a plausible framework connecting price to risk.

A refined version: “After controlling for building sum insured and region, does our occupation-hazard grouping explain the remaining variation in premiums for SME building insurance customers, or is there unexplained variation elsewhere?”

This version is specific, answerable from the data Wattle already has, of clear interest to the pricing team, and grounded in a plausible framework: that price should track the risk factors already believed to matter.

Translating Questions into Data Problems

Translating a Question into a Data Problem

  • Every question must be operationalised as a data analysis that leads to a result
  • Think about what the results would look like and how they might be interpreted
  • What types of questions do not lead to interpretable answers?
    • Inappropriate data: the available data do not adequately measure the factors of interest
    • Confounding: an unobserved factor is related to both the exposure and the outcome
    • Bias in data collection: the data collection process leads to biased results
    • Selection bias: the data over-represent certain groups relative to the target population

Adapted from Peng and Matsui (2015), see Chapter 3.4 of The Art of Data Science for details

Example: Checking the Refined Question for Pitfalls

TipExample: Wattle Insurance

Take the refined question above and check it against the four pitfalls. The refined question is associational, it asks how much variation the occupation-hazard grouping explains, not whether occupation causally changes claims cost, so confounding is not the right lens for it as written.

  • Inappropriate data? The claims data records sum insured, region, and occupation, so the factors of interest are measurable.
  • Confounding? This pitfall applies once the question becomes causal. Suppose instead Wattle asked: does moving a business into a higher hazard level cause its expected claims cost to rise, rather than the two simply being correlated? Building age or construction type could differ systematically across hazard levels and independently affect claims cost, confounding that causal claim if left uncontrolled.
  • Bias in data collection? The peril field was machine-generated from loss descriptions by a system nobody on the pricing team built. Any systematic misclassification there would bias any model built on top of it.
  • Selection bias? The occupation clustering assumed Wattle’s own portfolio mix matches national ABS statistics, an assumption that may not hold if Wattle’s actual book is skewed toward certain industries.

Activity 3: Refining a Question from the Case

Using the Wattle Insurance case (Chapter 1’s Introduction reading):

  • In your group, pick one of these starting points from the case:
    • “Should Wattle use the more accurate but less interpretable hybrid model?”
    • “Is it safe to build a pricing model on top of the vendor-supplied peril field?”
  • Apply the five characteristics of a good question to refine your chosen starting point into something specific and answerable.
  • Check your refined question against the four data-problem pitfalls (inappropriate data, confounding, bias in data collection, selection bias).
  • Share your refined question and pitfall check on the Teams channel.

Trust, Fairness, and AI in Insurance Pricing

When AI Identifies a Predictive Signal, Can We Trust It?

  • A model can find a real, statistically strong pattern in your data and still have learned the wrong thing
  • Before trusting a predictive signal, ask what the model actually picked up on, not just how well it predicts
  • Two examples make this concrete

Wolf or Husky?

  • A classifier trained to distinguish wolves from huskies reached high accuracy, but for the wrong reason (Ribeiro et al. 2016)
  • It had learned to detect snow in the background, since wolf photos in the training data were mostly taken in snowy settings, not the animal itself
  • The signal was real and predictive. It was still not what anyone wanted the model to learn

AI Systems for COVID-19 Detection: Which X-Ray Features Matter?

Illustration generated using AI
  • AI systems trained to detect COVID-19 from chest X-rays have been found to learn hospital- or dataset-specific shortcuts, such as image artifacts and acquisition differences, instead of genuine signs of disease (DeGrave et al. 2021)
  • They can perform well on familiar data and still generalise poorly to a new hospital

What Do We Mean by “Fair”?

“Fairness” is an overloaded concept.

Anti-discrimination

Legal obligation

  • Direct discrimination
  • Indirect discrimination
  • The legal standard

Competing notions

Contested ethical terrain

  • Actuarial fairness
  • Social justice
  • Choice-sensitive fairness

Consumer trust

Contractual commitment

  • Codes of practice
  • Consumer promises
  • Product disclosure

How Australian Law Regulates Insurance Discrimination?

  • Insurance exemptions: insurers may charge different prices based on age, disability or sex when supported by reasonable actuarial or statistical evidence
  • Evidence standard: data must be current, complete, credible, sufficiently large, and relevant to the individual risk
  • No racial exemption: race, colour, descent, ethnicity, and immigrant status are protected under the Racial Discrimination Act
  • Broader protections: state and territory laws may also protect other attributes, such as religious belief
  • Removing a protected attribute from a dataset is not enough on its own. Other data may still act as a proxy for it

Transparency

Important2026 ASIC review

A review of five motor vehicle insurance providers found none had explained, in their quote and renewal documents, the key factors that affected the calculation of the premium, or why the premium had changed from the previous year.

Privacy

The proposed Privacy Amendment (Personal Data Protection) Bill 2026 introduces a new “fair and reasonable” test for personal-data collection, use, and disclosure, assessed against reasonable expectations, transparency, data minimisation, genuine choice, proportionality, and individual impact.

AI Doesn’t Create a New Problem

TipThe takeaway

AI doesn’t create a new problem. It amplifies an existing one.

Algorithmic Pricing

Discussion

TipQuestion

Is insurance pricing a pure predictive task?

Business Environment and Constraints

Business Environment

  • Objectives
  • Constraints
  • Operating context

Objectives

  • Align actuarial modelling with strategic goals:
    • Profitability
    • Risk management
    • Customer retention and growth
  • Translate high-level business goals into measurable outcomes:
    • Loss ratio targets
    • Pricing accuracy and stability
    • Fairness or ESG-aligned pricing policies
  • Support data-informed decision-making:
    • Product development
    • Pricing and underwriting strategies
    • Reserving and reinsurance planning

Constraints

  • Regulatory constraints
    • Must comply with insurance and privacy regulations (e.g., APRA, GDPR)
    • Limits on use of sensitive attributes in modelling (e.g., gender, ethnicity)
  • Ethical and social considerations
    • Promote fairness, accountability, and transparency
    • Avoid discrimination and reputational risks
  • Technical constraints
    • Data limitations: missing data, bias, or silos
    • Trade-off between predictive power and interpretability
    • Computing resources and technical debt
  • Financial constraints
    • Budget constraints for analytics and modeling
    • Capital and solvency considerations

Operating Context

  • Market factors
    • Competitive pricing pressures
    • Customer expectations for personalisation and fairness
  • Technology and innovation
    • Growing role of machine learning and automation in actuarial work
    • Integration with real-time data systems and cloud infrastructure
  • Organisational setting
    • Collaboration between actuaries, data scientists, and underwriters
    • Data governance, version control, and reproducibility
  • External shocks
    • Impacts of climate events, pandemics, and inflation
    • Changes in regulation, accounting standards, or social attitudes

Activity 3: Business Context Analysis

Assume you are an actuary working for a consulting firm. Two teams (Team A and Team B) are working on different projects.

  • Team A — Retail Demand Forecasting

Team A works on forecasting demand for a grocery retailer. This project aims to estimate demand so that the supply chain knows how much product to send to stores. Once demand is predicted, the supply chain can determine how much to order, when to order it, and where to send it. Over-forecasting leads to waste, while under-forecasting leads to lost sales. Prediction accuracy is the most important consideration for this project.

Activity 3: Business Context Analysis (continued)

  • Team B — Motor Insurance Pricing

Team B works on predicting claims for a motor insurer, specifically for its comprehensive insurance product. This project aims to predict both the number and the cost of claims for the next year in order to set appropriate premiums for prospective policyholders. Over-estimating claims will result in non-competitive premiums, while under-estimating claims could lead to losses. Interpretability and ease of implementation of the model are more important than prediction accuracy for this project. However, the model should still be reasonably predictive.

TipQuestion:
  • For each case, identify the objectives, operating context, and constraints

References

DeGrave, Alex J, Joseph D Janizek, and Su-In Lee. 2021. “AI for Radiographic COVID-19 Detection Selects Shortcuts over Signal.” Nature Machine Intelligence 3: 610–19. https://doi.org/10.1038/s42256-021-00338-7.
Leek, Jeffery T, and Roger D Peng. 2015. “What Is the Question?” Science 347 (6228): 1314–15.
Peng, Roger D, and Elizabeth Matsui. 2015. The Art of Data Science: A Guide for Anyone Who Works with Data. Skybrude Consulting, LLC.
Ribeiro, Marco Tulio, Sameer Singh, and Carlos Guestrin. 2016. “"Why Should i Trust You?" Explaining the Predictions of Any Classifier.” Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 1135–44.